<?php

namespace app\configure\model;

use think\Model;

class ConfigHouseKeeperModel extends Model
{
    protected $connection = "mysql_app";

    protected $table = "t_config_house_keeper";

    public function House(): \think\model\relation\HasOne
    {
        return $this->hasOne(ConfigHouseModel::class, 'id', 'unit');
    }

    public function Fa(): \think\model\relation\HasOne
    {
        return $this->hasOne(ConfigHouseModel::class, 'nid', 'unit');
    }
}